package com.bwie.controller;
import com.bwie.pojo.GroupOrder;
import com.bwie.service.GroupOrderService;
import com.bwie.service.Impl.GroupOrderServiceImpl;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* (t_group_order)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/prod/GroupOrder")
public class GroupOrderController {
/**
* 服务对象
*/
    @Autowired
    private GroupOrderService groupOrderService;

    /**
     * 我的拼团订单列表
     * @param pageInfoVo
     * @return
     */
    @PostMapping(value = "/getGroupOrderList")
    public R getGroupOrderList(
            @RequestBody PageInfoVo pageInfoVo
            ){
        return groupOrderService.getGroupOrderList(pageInfoVo);
    }
    @PostMapping(value = "/deleteOrder/{orderId}")
    public R deleteOrder(
            @PathVariable("orderId")Integer orderId
    ){
        return groupOrderService.deleteOrder(orderId);
    }
}
